package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.dto.EvaluationProductDto;
import com.ruoyi.gather.api.domain.dto.ProductInfoModuleDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "remotePythonMethodCallService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemotePythonMethodCallService {
    

    @GetMapping("/gather/pythonMethodCall/createActivityByPython/{storeId}/{startTime}/{endTime}/{activityName}")
    R<Object> createActivityByPython( @PathVariable("storeId") String storeId,
                                      @PathVariable("startTime") String startTime,
                                      @PathVariable("endTime") String endTime,
                                      @PathVariable("activityName") String activityName);

    @GetMapping("/gather/pythonMethodCall/addProductToActivity/{storeId}/{discount}/{promotionId}/{productId}")
    R<Object> addProductToActivity( @PathVariable("storeId") String storeId,
                                      @PathVariable("discount") String discount,
                                      @PathVariable("promotionId") String promotionId,
                                      @PathVariable("productId") String productId);




}
